package com.t168.appinfo.service.reception.appcategory.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.t168.appinfo.dao.reception.category.AppCategoryMapper;
import com.t168.appinfo.entity.AppCategory;
import com.t168.appinfo.service.reception.appcategory.AppCategoryService;

@Service("appCategoryService")
public class AppCategoryServiceImpl implements AppCategoryService {

	@Resource(name="appCategoryMapper")
	private AppCategoryMapper appCategoryMapper;
	
	public AppCategoryMapper getAppCategoryMapper() {
		return appCategoryMapper;
	}

	public void setAppCategoryMapper(AppCategoryMapper appCategoryMapper) {
		this.appCategoryMapper = appCategoryMapper;
	}

	@Override
	public List<AppCategory> getLevelOneCgInfo() {
		return appCategoryMapper.getLevelOneCgInfo();
	}

	@Override
	public List<AppCategory> getLevelTwoCgInfo(String categoryId) {
		return appCategoryMapper.getLevelTwoCgInfo(categoryId);
	}

	@Override
	public List<AppCategory> getLevelThreeCgInfo(String categoryId) {
		return appCategoryMapper.getLevelThreeCgInfo(categoryId);
	}

}
